﻿@{
    ViewBag.Title = "编辑试题";
}

@model  zqdn.Models.Ex.ExTpl

<div class="pageheader">
    <h2><i class="fa fa-user"></i>编辑试题</h2>
</div>

@using (Html.BeginForm("Edit", "Ex", new { id = Model.ID }, FormMethod.Post, new { name = "myform", id = "myform", @class = "form-horizontal form-bordered" }))
{
        @Html.HiddenFor(o => o.ID)
        @Html.HiddenFor(o => o.IsDeleted)
        @Html.HiddenFor(o => o.CreatedTime);

        <div class="form-group">
            <label class="col-sm-3 control-label">题目</label>
            <div class="col-sm-6">
                <input type="text" name="Title" class="form-control" value="@Model.Title">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">选项</label>
            <div class="col-sm-6">
                <input type="text" name="Option" class="form-control" value="@Model.Option.Replace("{","").Replace("}","")">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">正确答案</label>
            <div class="col-sm-6">
                <input type="text" name="TureOption" class="form-control" value="@Model.TureOption">
            </div>
        </div>

        <div class="submit-footer">
            <button class="btn btn-primary" id="btnSave">提交</button>
        </div>
 
}
 